//
//  FYLabel.swift
//  FYWeather
//
//  Created by D on 2017/11/17.
//  Copyright © 2017年 D. All rights reserved.
//

import UIKit

class TLabel: NSObject {
    
    
    class public func labelCreate(ofSize: CGFloat , weight: UIFont.Weight ,textColor: UIColor) -> UILabel {
        let label = UILabel()
        label.font = UIFont.systemFont(ofSize: ofSize, weight: weight)
        label.textColor = textColor
        
        return label
    }
    
    class public func labelCreate(frame: CGRect , ofSize: CGFloat , textColor: UIColor) -> UILabel {
        
        let label = UILabel(frame: frame)
        label.font = UIFont.systemFont(ofSize: ofSize)
        label.textColor = textColor
        
        return label
    }
    
    
    class public func labelCreate(frame: CGRect , ofSize: CGFloat , weight: UIFont.Weight , textColor: UIColor) -> UILabel {
        let label = UILabel(frame: frame)
        label.font = UIFont.systemFont(ofSize: ofSize, weight: weight)
        label.textColor = textColor
        
        return label
    }
    
}
